package com.security.springsecurity.controller;

import com.security.springsecurity.entity.Msg;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/user")
public class UserController {

    @RequestMapping("/page")
    public String index(Model model){
        Msg msg =  new Msg("用户","用户内容","用户信息，对用户显示");
        model.addAttribute("msg", msg);
        return "home";
    }
}
